package com.dududu.xiaoxueqi;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {

    @GetMapping("/login")
    public String showLogin() {
        return "login"; // 对应 static/login.html
    }

    @GetMapping("/search")
    public String showSearch() {
        return "search"; // 对应 static/search.html
    }

    @GetMapping("/home")
    public String showHome() {
        return "home"; // 对应 static/home.html
    }

    @GetMapping("/profile")
    public String showProfile() {
        return "profile"; // 对应 static/profile.html
    }

    @GetMapping("/mall")
    public String showMall() {
        return "mall"; // 对应 static/mall.html
    }
}
